package com.koron.order.linepatrol.feign;

import com.koron.bean.base.Response;
import com.koron.common.core.feignConfig.FeignFallbackFactory;
import com.koron.order.linepatrol.base.bean.dto.PatrolDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author xxxn
 * @projectName GDH_EAM_V2
 * @description: 工单计划feign
 */
@FeignClient(value = "eam-service-plan", fallbackFactory = FeignFallbackFactory.class)
public interface PlanLineOrderMsgFeign {

    /**
     * 开始执行工单时，调用此接口
     * @param planId 工单编码
     * @return 工单计划详情
     */
    @GetMapping("/planLinePatrol/getPlanPatrolMsg")
    Response<PatrolDto> getPlanPatrolMsg(@RequestParam("planId") String planId, @RequestParam("planCreateTime") String planCreateTime);

}
